<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Round Snake:  File sorgente struttura_dati.h</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Round Snake
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generato da Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Cerca');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Pagina&#160;Principale</span></a></li>
      <li><a href="annotated.html"><span>Classi</span></a></li>
      <li class="current"><a href="files.html"><span>File</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Cerca" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Elenco&#160;dei&#160;file</span></a></li>
      <li><a href="globals.html"><span>Elementi&#160;dei&#160;file</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">struttura_dati.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="struttura__dati_8h.html">Vai alla documentazione di questo file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 
<a name="l00006"></a>00006 <span class="comment">//#define DEBUG_MODE</span>
<a name="l00007"></a>00007 
<a name="l00008"></a>00008 <span class="preprocessor">#ifdef DEBUG_MODE</span>
<a name="l00009"></a>00009 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> MASK; <span class="comment">/*&lt;Maschera per la selezione del livello di tracing*/</span>
<a name="l00010"></a>00010 
<a name="l00011"></a>00011 <span class="preprocessor">#define DBG(A, B) {if ((A) &amp; MASK) {B; } }</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#else</span>
<a name="l00013"></a><a class="code" href="struttura__dati_8h.html#a9fd176efd6d22cb809550f0271c2a93d">00013</a> <span class="preprocessor"></span><span class="preprocessor">#define DBG(A, B)</span>
<a name="l00014"></a>00014 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00015"></a>00015 <span class="preprocessor"></span>
<a name="l00016"></a><a class="code" href="struttura__dati_8h.html#a330bea9b36f638349fec0d06c8ab4c38">00016</a> <span class="preprocessor">#define D1(a) DBG(1, a)</span>
<a name="l00017"></a><a class="code" href="struttura__dati_8h.html#a975397c373ae2a9dc28d0297fa18da56">00017</a> <span class="preprocessor"></span><span class="preprocessor">#define D2(a) DBG(2, a)</span>
<a name="l00018"></a>00018 <span class="preprocessor"></span>
<a name="l00019"></a>00019 <span class="preprocessor">#ifndef DEBUG_MODE</span>
<a name="l00020"></a><a class="code" href="struttura__dati_8h.html#a8de3ed741dadc9c979a4ff17c0a9116e">00020</a> <span class="preprocessor"></span><span class="preprocessor">#define NDEBUG</span>
<a name="l00021"></a>00021 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
<a name="l00022"></a>00022 <span class="preprocessor"></span><span class="preprocessor">#include &lt;cassert&gt;</span>
<a name="l00023"></a>00023 
<a name="l00024"></a>00024 
<a name="l00025"></a>00025         
<a name="l00026"></a><a class="code" href="struttura__dati_8h.html#aa5b055a23b6c6327088ecf583e9e1c5f">00026</a> <span class="preprocessor">        #define t_zero 0.50</span>
<a name="l00027"></a><a class="code" href="struttura__dati_8h.html#a650a929b45480c0875d8c814f442b6ac">00027</a> <span class="preprocessor">        #define MAX_NOME 15 </span>
<a name="l00028"></a><a class="code" href="struttura__dati_8h.html#aaf421655229ce8c8f2f4e01abdd17843">00028</a> <span class="preprocessor">        #define dim_mappa 20 </span>
<a name="l00029"></a><a class="code" href="struttura__dati_8h.html#a7ca498701fa97028e0ff8c7c2977ae4d">00029</a> <span class="preprocessor">        #define zero_map 50 </span>
<a name="l00030"></a><a class="code" href="struttura__dati_8h.html#a1daf785e3f68d293c7caa1c756d5cb74">00030</a> <span class="preprocessor">        #define pi      3.14 </span>
<a name="l00031"></a><a class="code" href="struttura__dati_8h.html#aa59ed8e5155ccdbe3c58c6139856e6a6">00031</a> <span class="preprocessor">        #define dim_object 25 </span>
<a name="l00032"></a><a class="code" href="struttura__dati_8h.html#a86bfea95c44539bf6aa9a951370cb042">00032</a> <span class="preprocessor">        #define max_sn 400      </span>
<a name="l00037"></a><a class="code" href="structtesto.html#a01b59d1cc4eb4ce9897a1610f2a50983">00037</a> <span class="preprocessor">        struct testo {ALLEGRO_FONT *carattere;</span>
<a name="l00038"></a><a class="code" href="structtesto.html#aa2b2097efd19e05b1b59461dfabc7cf3">00038</a> <span class="preprocessor">                                  int px;</span>
<a name="l00039"></a><a class="code" href="structtesto.html#a53176f954fa825aca2fcd0b3e1e8c2c3">00039</a> <span class="preprocessor">                                  int py;</span>
<a name="l00040"></a><a class="code" href="structtesto.html#a85900b71c2ae95dc4ba93f52eddb3e0c">00040</a> <span class="preprocessor">                                  const char *text;};</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00043"></a><a class="code" href="struttura__dati_8h.html#a9a805c985922e815802b76d21f331e27ab85c5fad69da8e1d94eebae022034a74">00043</a>         <span class="keyword">enum</span> <a class="code" href="struttura__dati_8h.html#a9a805c985922e815802b76d21f331e27" title="enumerato usato per permettermi la selezione nello switch">scelta</a> {<a class="code" href="struttura__dati_8h.html#a9a805c985922e815802b76d21f331e27ad6dc1651e46be5ab2415ae082f1f320b">menu</a>,<a class="code" href="struttura__dati_8h.html#a9a805c985922e815802b76d21f331e27a172470b2ce68b5bd0e60bb24ce8ee105">gioco</a>,<a class="code" href="struttura__dati_8h.html#a9a805c985922e815802b76d21f331e27a307965c0051e50aecd66d59bbe077ba7">record</a>,<a class="code" href="struttura__dati_8h.html#a9a805c985922e815802b76d21f331e27aeaa99cb6da0df230727ed6643fc5151f">prendi_punti</a>,<a class="code" href="struttura__dati_8h.html#a9a805c985922e815802b76d21f331e27ab85c5fad69da8e1d94eebae022034a74">uscita</a>};
<a name="l00044"></a>00044         
<a name="l00050"></a><a class="code" href="struttura__dati_8h.html#aed6e7c893fa0ed63b808c0def3f03f37a6e7caea11fac965b0de154d1299fe219">00050</a>         <span class="keyword">enum</span> <a class="code" href="struttura__dati_8h.html#aed6e7c893fa0ed63b808c0def3f03f37" title="Rappresenta la direzione della testa (snake[0]), mi servirà per poter incrementare o decrementare la ...">direzione</a> {<a class="code" href="struttura__dati_8h.html#aed6e7c893fa0ed63b808c0def3f03f37a35f93f075e16b5c43c39b70af1a5ef5c">destra</a>,<a class="code" href="struttura__dati_8h.html#aed6e7c893fa0ed63b808c0def3f03f37a6e7caea11fac965b0de154d1299fe219">sotto</a>,<a class="code" href="struttura__dati_8h.html#aed6e7c893fa0ed63b808c0def3f03f37a898515c7bcad93969fef96b0b8247719">sinistra</a>,<a class="code" href="struttura__dati_8h.html#aed6e7c893fa0ed63b808c0def3f03f37a5f69cd0b681296bc61e98689bc34eef3">sopra</a>};
<a name="l00051"></a>00051         
<a name="l00056"></a><a class="code" href="structcaratteristiche.html#a6b9a4aa6e25b11a19ebd2aafafaa5aa5">00056</a>         <span class="keyword">struct </span><a class="code" href="structcaratteristiche.html" title="struttura dati utilizzata per memorizzare le coordinate di tutti gli oggetti presenti in partita...">caratteristiche</a> {<span class="keywordtype">int</span> <a class="code" href="structcaratteristiche.html#a6b9a4aa6e25b11a19ebd2aafafaa5aa5" title="posizione in ascissa">pos_x</a>;
<a name="l00057"></a><a class="code" href="structcaratteristiche.html#af4819c923d03caa21c52dfcd3d6d5c11">00057</a>                                                         <span class="keywordtype">int</span> <a class="code" href="structcaratteristiche.html#af4819c923d03caa21c52dfcd3d6d5c11" title="posizione in ordinata">pos_y</a>;};
<a name="l00058"></a>00058 
<a name="l00062"></a><a class="code" href="structelem.html#a08623393b3e0029f2d31a5d0dc43e3f2">00062</a>         <span class="keyword">struct </span><a class="code" href="structelem.html" title="Struttura utilizzata per implementare l&#39;array contenente punteggio e nome del giocatore.">elem</a> {<span class="keywordtype">int</span> <a class="code" href="structelem.html#a08623393b3e0029f2d31a5d0dc43e3f2" title="punteggio effettuato">score</a>;
<a name="l00063"></a><a class="code" href="structelem.html#a4ae358af441216e3a7ca55e009d6c2f3">00063</a>                                  <span class="keywordtype">char</span> <a class="code" href="structelem.html#a4ae358af441216e3a7ca55e009d6c2f3" title="nome giocatore">nome</a>[<a class="code" href="struttura__dati_8h.html#a650a929b45480c0875d8c814f442b6ac" title="lunghezza massima del nome giocatore">MAX_NOME</a>];};
<a name="l00064"></a>00064         
<a name="l00068"></a><a class="code" href="structl__record.html#ac76cc79c3850c4c841b5a795012ab57e">00068</a>         <span class="keyword">struct </span><a class="code" href="structl__record.html" title="Struttura contenente l&#39;indirizzo e la lunghezza dell&#39;arry dei record.">l_record</a> {<a class="code" href="structelem.html" title="Struttura utilizzata per implementare l&#39;array contenente punteggio e nome del giocatore.">elem</a> * <a class="code" href="structl__record.html#ac76cc79c3850c4c841b5a795012ab57e" title="puntatore ad elem int">elementi</a>;
<a name="l00069"></a><a class="code" href="structl__record.html#a48426dbb22eb9c1cd73cdb2f2a4f38c9">00069</a>                                          <span class="keywordtype">int</span> <a class="code" href="structl__record.html#a48426dbb22eb9c1cd73cdb2f2a4f38c9" title="numero elementi">num_elem</a>;};
<a name="l00070"></a>00070 
<a name="l00071"></a>00071         
<a name="l00072"></a>00072 
<a name="l00073"></a>00073         
<a name="l00074"></a>00074 
<a name="l00075"></a>00075 
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tutto</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classi</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>File</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funzioni</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variabili</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Tipi enumerati (enum)</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Valori del tipo enumerato</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Definizioni</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generato Gio 4 Lug 2013 17:40:54 per Round Snake da &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
